#ifndef CLIENTOSCTHREAD_H
#define CLIENTOSCTHREAD_H

#include <QThread>
#include "externals/includes/ip/UdpSocket.h"

class OSCthulhuClient;
#include "OSCthulhuClient.h"

class ClientOSCThread: public QThread
{
    Q_OBJECT
public:
    ClientOSCThread(OSCthulhuClient* client);
    void run();
    UdpReceiveSocket* getReceiveSocket();
    void send(QString address, int port, osc::OutboundPacketStream p);
    void quitConnection();
private:
    OSCthulhuClient* client;
    UdpReceiveSocket* receiveSocket;
    SocketReceiveMultiplexer mux;
};

#endif // CLIENTOSCTHREAD_H
